<?php
#########################
# CRIANDO COMPLEX TYPES #
#########################


# REGISTRANDO A ESTRUTURA DE DADOS DOS INPUTS USADOS PELO WEB SERVICE
#===================================================================
$server->wsdl->addComplexType ( 'job', 'complexType', 'struct', 'all', '', 
array (
	'job_id' => array ('name' => 'job_id', 'type' => 'xsd:int' ), 
	'seq_db' => array ('name' => 'seq_db', 'type' => 'tns:arrayString' ), 
	'seq_in' => array ('name' => 'seq_in', 'type' => 'tns:arrayString' ) 
) );

$server->wsdl->addComplexType ( 'download', 'complexType', 'struct', 'all', '',
array (
	'appname' => 	array ('name' => 'appname', 'type' => 'xsd:string' ), 
	'md5' => 		array ('name' => 'md5', 	'type' => 'xsd:string' ), 
	'url' => 		array ('name' => 'url', 	'type' => 'xsd:string' ) 
) );

/*
$server->wsdl->addComplexType ( 'estrutura_input2', 'complexType', 'struct', 'all', '', 
array (
	'carro' => array ('name' => 'carro', 'type' => 'xsd:string' ), 
	'tipo' => array ('name' => 'tipo', 'type' => 'xsd:string' ), 
	'seguro' => array ('name' => 'seguro', 'type' => 'xsd:boolean' ) 
) );

# REGISTRANDO A ESTRUTURA DE DADOS DO OUTPUT USADOS PELO WEB SERVICE
#===================================================================
$server->wsdl->addComplexType ( 
	'estrutura_retorna_array', 
	'complexType', 
	'struct', 
	'all', 
	'', 
	array (
		'data' => array ('name' => 'data', 'type' => 'xsd:string' ), 
		'desejo' => array ('name' => 'desejo', 'type' => 'xsd:string' ) 
) );

$server->wsdl->addComplexType ( 'arrayString', 'complexType', 'array', '','SOAP-ENC:Array', 
	array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]'),'xsd:string');

//*/

$server->wsdl->addComplexType ( 
	'arrayString', 
	'complexType', 
	'array', 
	'all',
	'', 
	array(
		'arrayString' => array(
			'name' => 'arrayString',
			'ref'=>'SOAP-ENC:arrayType',
			'wsdl:arrayType'=>'string[]')
		)
	);
$server->wsdl->addComplexType ( 
	'arrayDownload', 
	'complexType', 
	'array', 
	'all',
	'', 
	array(
		'arrayString' => array(
			'name' => 'arrayDownload',
			'ref'=>'SOAP-ENC:arrayType',
			'wsdl:arrayType'=>'download[]')
		)
	);

?>